package com.zhongyouyun.admin.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @Author: shenyi
 * @Date: 2021-12-20
 * @Description: 
 */

@ApiModel(value="DictModel对象", description="")
@Data
@TableName("z_dict")
@JsonInclude(JsonInclude.Include.NON_NULL)
@Accessors(chain = true)
public class DictModel implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @ApiModelProperty(value = "名称")
    @TableField("label")
    private String label;


    @ApiModelProperty(value = "值")
    @TableField("value")
    private String value;


    @ApiModelProperty(value = "类型")
    @TableField("type")
    private String type;


    @ApiModelProperty(value = "排序")
    @TableField("sort")
    private String sort;

    @ApiModelProperty(value = "值中文")
    @TableField("description")
    private String description;


    @ApiModelProperty(value = "是否删除")
    @TableField("is_del")
    private String isDel;

    @ApiModelProperty(value = "备注")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty(value = "创建时间")
    @TableField("createTime")
    private Date createTime;

    @ApiModelProperty(value = "修改人")
    @TableField("updateBy")
    private String updateBy;

    @ApiModelProperty(value = "修改时间")
    @TableField("updateTime")
    private Date updateTime;

    @ApiModelProperty(value = "创建人")
    @TableField("createBy")
    private String createBy;


    @ApiModelProperty(value = "资源Id")
    @TableField("menu_id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long menuId;


}